<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html class="ie"><!--<![endif]-->
<head>
    <meta charset="utf-8">
    <title>登录</title>
    <meta name="viewport"
          content="width=320.1, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <link rel="Stylesheet" type="text/css" href="{php echo $this->_css_url}mian.css">
    <link rel="stylesheet" type="text/css" href="{php echo $this->_css_url}myctrip.css">
    <script language='javascript' src='{php echo $this->_script_url}jquery.js'></script>
    <script language='javascript' src='{php echo $this->_script_url}jquery.form.js'></script>
    <script language='javascript' src='{php echo $this->_script_url}common.js'></script>
</head>
<body onselectstart="return false" tabindex="10000">
<div id="headerview" style="height: 48px;">
    <header style="position: fixed;">
        <h1>登录</h1>
        <i id="c-ui-header-return" class="returnico i_bef" onclick="javascript:history.back();"></i>
    </header>
</div>
<div id="main" class="h100">
    <div class="main-frame">
        <div class="main-viewport">
            <div class="sub-viewport" id="id_viewport2" page-id="212052" page-url="account/login">
                <article class="p10">
                    <ul class="query jstab" style="display: none;">
                        <li for="login" class="on">登录查询</li>
                        <!--<li for="notlogin">免登录查询</li>-->
                    </ul>
                    <!--登录查询-->
                    <form name="form1" method="POST" action="" id='data_form'>
                    <div id="login">
                        <ul class="conlist">
                            <li class="li_inputbox clear-input-box">
                                <input autofocus="" maxlength="30" class="li_input" tabindex="1" id="username"
                                       type="text" name="username" required="" value="" placeholder="用户名"><a
                                    class="clear-input " href="javascript:;" style="display: none;"><span></span></a>
                            </li>
                            <li class="li_inputbox clear-input-box">
                                <input class="li_input" maxlength="20" required="" tabindex="2" id="password"
                                       type="password" name="password" placeholder="密码(6-20位字符)"><a class="clear-input "
                                                                                    href="javascript:;"
                                                                                    style="display: none;"><span></span></a>
                            </li>
                        </ul>
                        <!--<ul class="overflow loginmr p10" id="wechatBox" style="display:none;">-->
                            <!--<li class="fl"><label for=""><i class="checkbox checked" id="bindwechat"></i>关联微信帐号</label>-->
                            <!--</li>-->
                            <!--<li class="fr"><a href="/webapp/cpage/#comment?biztype=myctrip&amp;cmttype=relevance"-->
                                              <!--class="cblue">查看关联说明</a></li>-->
                        <!--</ul>-->
                        <input type="button" class="mainbtn" id="data_submit" value="登录">
                        <input type="hidden" name="submit" value="1" />
                        <input type="hidden" name="token" value="{$_W['token']}" />
                    </div>
                    </form>
                    <!--免登录查询-->
                    <!--<div id="notlogin" style=" display:none;">-->
                        <!--<ul class="conlist">-->
                            <!--<li class="li_inputbox clear-input-box">-->
                                <!--<input id="mobile" tabindex="1" type="tel" required="" value="" maxlength="11"-->
                                       <!--placeholder="联系人手机号码（必填）"><a class="clear-input " href="javascript:;"-->
                                                                    <!--style="display: none;"><span></span></a>-->
                            <!--</li>-->
                            <!--<li class="li_verify overflow">-->
                                <!--<div class="li_inputbox fl clear-input-box">-->
                                    <!--<input type="tel" required="" value="" id="verifycode" maxlength="4"-->
                                           <!--placeholder="验证码（必填）"><a class="clear-input " href="javascript:;"-->
                                                                    <!--style="display: none;"><span></span></a>-->
                                <!--</div>-->
                                <!--<button class="s_btn fr" id="updateverify" value="获取验证码">获取验证码</button>-->
                                <!--<p class="corange clear">*仅支持非会员订单</p>-->
                            <!--</li>-->
                        <!--</ul>-->
                        <!--<input type="button" class="mainbtn" id="nologinsubmit" value="查询">-->
                    <!--</div>-->
                    <!--免登录查询-->
                    <aside class="loginlink overflow">

                        {if ($this->_set_info['user'] == 2 && $this->_set_info['reg'] == 1)}
                        <span class="fl jsreg" style="font-size: 16px;color: #29a2f7;"
                              onClick="location.href='{php echo $this->createMobileUrl('register')}'">免费注册</span>
                        {else}
                        <span class="fl jsreg" style="font-size: 16px;color: #29a2f7;" >禁止注册</span>
                        {/if}

                        <!--<span class="fr js_getpass" style="font-size: 16px;color: #29a2f7;"-->
                              <!--onClick="location.href='forgetpass.html'">忘记密码</span>-->
                    </aside>
                    {if ($this->_set_info['user'] == 2 && $this->_set_info['reg'] == 2)}
                        <p class="reggift">{php echo $this->_set_info['regcontent']}</p>
                    {/if}
                </article>
            </div>
        </div>
        <div class="main-state"></div>
    </div>
</div>
<div id="footer"></div>
<input type="hidden" id="page_id" value="212052">
<input type="hidden" id="bf_ubt_orderid" value="">

{php include $this->template('hotel_msg')}

<script type="text/javascript">
    $(function(){
        $("#data_form").ajaxForm();

        $("#data_submit").click(function(){
            var username = $("#username").val();
            var password = $("#password").val();

            if (username == '' || password == '') {
                show_msg("登录名和密码不能为空", 2000);
                return false;

            } else {
                $("#data_form").ajaxSubmit({
                    success:function(data){
                        //alert(data);return false;
                        data  =eval("(" + data +")");
                        if(data.result==1){
                            location.href = data.url;
                        }
                        else{
                            show_msg(data.error, 2000);
                            return false;
                        }
                    }

                });
            }
        });
    });
</script>

{template 'share'}

</body>
</html>
